 
function delOption(val1,val2){
	 
        if(window.confirm('确定删除该记录么？'))
        {
       	  window.location.href='/doTradeReg.do?pkid='+val1+'&bpm_id=' + val2; 
        } 		
		
}
function delIndexInfo(){
	var listsize = document.getElementById('listsize').value;
	var pkid_string = '';
	var j;
	for(var i=0;i<listsize;i++){
		if(document.getElementById('checkone'+i).checked){
			pkid_string += document.getElementById('checkone'+i).value+'|';
			if(document.getElementById('tem_type'+i).value=='0'){			
			j=i+1;
			alert('您选择的第'+j+'行是系统模板不能删除');
			return false;
			}
		}
	}
	
	if(pkid_string == ''){
		alert('请至少选择一条!');
		return false;
	}
	
	document.getElementById('pkid').value = pkid_string;
	document.indexForm.action='/doTradeReg.do';
	if(window.confirm('确认删除吗?')){
		document.indexForm.submit();
	}
}